function fetchNachrichten(nachrichtenjs, afterLoaded, validateNachricht, onClose){
	var date2days = function(date){
		return date/(1000*60*60*24)|0;
	};
	
	var msgsLoad = function (text){
		var now = date2days(new Date());
		var nachrichten = null;
		try{
			eval("nachrichten = "+text+";");
			if (nachrichten!=null && nachrichten.length>0){
				for(var i=0, c=nachrichten.length; i<c; i++){
					var n = nachrichten[i];
						if (now<n.b || now>(n.b+n.d))
							continue;
					
					if (validateNachricht!=null && validateNachricht(nachrichten[i])){
							createNachricht(n);
					}
				}
			}
		}catch(e){}

		if (afterLoaded!=null)
			afterLoaded(nachrichten);
	};

	var createNachricht = function (n){
		var div = document.createElement("div");
		div.innerHTML = "<table class='msg'><tr><td>"+n.msg+"</td><td class='xlink'><span  id='xlink_"+n.id+"'>[x]</span></td></tr></table>";
		var p = tabsArr[0].parentNode;
		var bn = _gel(tabsArr[0].parentNode.id+"_navTable");
		p.insertBefore(div, bn);

		var xlink = _gel("xlink_"+n.id);
		var nid =  n.id;
		xlink.onclick = function(){
			p.removeChild(div);
			if (onClose!=null)
				onClose(n);
		};
		return div;
	};

	_IG_FetchContent(nachrichtenjs, msgsLoad);
}